package com.example.demo.yjcx.model;

import com.example.demo.utils.BigDecimalUtils;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author linjingze
 * @date 2023/12/21 3:53 PM
 */
@Data
public class YJCalculateResult {

    /**
     * 前段+后段总美金
     */
    private BigDecimal allUsd;
    private BigDecimal allCny;
    private BigDecimal volumePrice;
    private BigDecimal weightPrice;
    private BigDecimal psf;
    private BigDecimal lfcb;
    private BigDecimal bsgjcb;
    private BigDecimal dbjg;
    private BigDecimal zcjg;
    private BigDecimal hyf;
    private String area;
    public StringProperty area() {
        return new SimpleStringProperty(area);
    }

    public StringProperty dbjg() {
        return new SimpleStringProperty("$" + BigDecimalUtils.toPlainString(dbjg));
    }

    public StringProperty zcjg() {
        if (zcjg == null) {
            return new SimpleStringProperty("");
        }
        return new SimpleStringProperty("$" + BigDecimalUtils.toPlainString(zcjg));
    }
    public StringProperty allUsd() {
        return new SimpleStringProperty(BigDecimalUtils.toPlainString(allUsd));
    }

    public StringProperty allCny() {
        return new SimpleStringProperty(BigDecimalUtils.toPlainString(allCny));
    }
    public StringProperty volumePrice() {
        return new SimpleStringProperty(BigDecimalUtils.toPlainString(volumePrice));
    }

    public StringProperty weightPrice() {
        return new SimpleStringProperty(BigDecimalUtils.toPlainString(weightPrice));
    }
    public StringProperty psf() {
        return new SimpleStringProperty(BigDecimalUtils.toPlainString(psf));
    }
    public StringProperty lfcb() {
        return new SimpleStringProperty("¥" + BigDecimalUtils.toPlainString(lfcb));
    }
    public StringProperty bsgjcb() {
        return new SimpleStringProperty("¥" + BigDecimalUtils.toPlainString(bsgjcb));
    }



}
